Skip to content

Conversation

@smasty
Copy link

@smasty smasty commented Mar 31, 2022

Hi, according to the WOFF File Format 1.0 and WOFF File Format 2.0 specifications,

Although only fonts of type 0x00010000 [...] and 0x4F54544F [...] are widely supported at present, it is not an error in the WOFF file if the flavor field contains a different value, indicating a WOFF-packaged version of a different sfnt flavor.

Thus I'm proposing to remove the check for the 0x00010000 flavor from the WOFF and WOFF2 matchers. This would ensure that files of other WOFF flavors (like the common one embedding CFF glyphs/OpenType) would be correctly identified by this library.

Alternatively, if allowing arbitrary flavors seems too loose to you., I also prepared a PR that allows the three most common flavors that are also mentioned in the format specification: #118

@smasty smasty changed the title Add support for all WOFF/WOFF2 flavors Add support for all WOFF/WOFF2 flavors (Alternative to #118) Mar 31, 2022
h2non added a commit that referenced this pull request Apr 19, 2022
Add support for more WOFF/WOFF2 flavors (Alternative to #117)
@h2non
Copy link
Owner

h2non commented Apr 19, 2022

Closing in favor of #118. Thank you!

@h2non h2non closed this Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants